import styled, { css } from 'styled-components';

export const SiderContainer = styled.div`
	flex-shrink: 0;
    background : #00152a;
    width      : 200px;
    min-height : 100vh;
    position   : relative;
    z-index    : 3;
`;

const SiderWrapperFixedStyle = css`
	position: fixed;
    left    : 0;
    top     : 0;
    width   : inherit;
    overflow: hidden;
`;

export const SiderWrapper = styled.div`
	height        : 100%;
    position      : fixed;
    display       : flex;
    flex-direction: column;
    ${props => props.fixed && SiderWrapperFixedStyle};
`;

export const SiderHeader = styled.div`
	flex-shrink: 0;
`;


export const Logo = styled.a.attrs({
    alt: ''
})`
	display    : flex;
    align-items: center;
    padding    : 10px 16px 12px 12px;
    color      : white;
    img {
        width: 32px;
        margin-left: -2px;
    }
    h1 {
        font-weight: 600;
        margin-left: 12px;
        flex-shrink: 0;
    }
`;

export const SiderMenu = styled.ul`
	flex-shrink: 0;
    padding: 10px 0 10px 20px;
    li {
      a {
        font-size: 16px;
        color: #fff;
      }
      ul {
        margin-left: 20px;
        li {
          a {
            font-size: 14px;
            color: #ccc;
          }
        }
      }
    }
`;
